package tests;

import jade.core.Profile;
import jade.core.ProfileImpl;
import jade.core.Runtime;
import jade.wrapper.AgentController;
import jade.wrapper.ContainerController;

public class SendMessendger {

	/**
	 * @param args
	 */
	public static void main(String[] args) {
		Runtime rt = Runtime.instance();
		Profile p = new ProfileImpl();
		ContainerController cc = rt.createMainContainer(p);
		try
		{
			AgentController v0 = cc.createNewAgent("v0", "tests.SenderNode", new String[] {"v1"});
			AgentController v1 = cc.createNewAgent("v1", "tests.ReceiverNode", new String[] {"v0"});
			AgentController aC = cc.createNewAgent("aC", "tests.ActionController", new String[] {"100"});
			
			v0.start();
			v1.start();
			aC.start();
		} catch (Exception e)
		{
			e.printStackTrace();
		}
		
	}

}
